import socket
import DesModule
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind(("192.168.10.51",8000)) #local("localhost") 0-65535
s.listen()
conn,addr = s.accept() #阻塞
data = conn.recv(1024) #接受
print("从客户端收到的信息为：",data.decode('utf-8'))
conn.sendall("长江长江，我是黄河，消息已收到".encode('utf-8'))
s.close()